.mainBox{
     height: 100vh;
  display: flex;
  flex-direction: column;
}
main{
    flex: 1;
    overflow-y: scroll;
}
footer{
    height: 50px;
}